package com.example.lets;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.FrameLayout;

/**
 * Created by Administrator on 2015/12/16.
 */
public class UserPagePullableView extends FrameLayout implements Pullable {

    //View imgView;

    public UserPagePullableView(Context context)
    {
        super(context);
        //getChildView();
    }

    public UserPagePullableView(Context context, AttributeSet attrs)
    {
        super(context, attrs);
        //getChildView();
    }

    public UserPagePullableView(Context context, AttributeSet attrs, int defStyle)
    {
        super(context, attrs, defStyle);
        //getChildView();
    }

    //private void getChildView() {
    //    imgView = getChildAt(1);
    //}

    @Override
    public boolean canPullDown()
    {
        return false;
    }

    @Override
    public boolean canPullUp()
    {
        /*if (UserPageActivity.hasNew) {
            UserPageActivity.hasNew = false;
            return false;
        }*/
        return UserPageActivity.isBottom;
    }
}